package cn.itrip.service.Impl;

import cn.itrip.DTO.ItripHotelRoomDTO;
import cn.itrip.dao.ItripHotelRoomMapper;
import cn.itrip.entity.ItripHotelRoom;
import cn.itrip.service.ItripHotelRoomService;
import cn.itrip.vo.biz.SearchHotelRoomVO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ItripHotelRoomServiceImpl extends ServiceImpl<ItripHotelRoomMapper,ItripHotelRoom> implements ItripHotelRoomService {
    @Override
    public ItripHotelRoom getItripHotelRoomByHotelAndId(Long hotelId, Long roomId) {
        return baseMapper.getItripHotelRoomByHotelAndId(hotelId,roomId);
    }

    @Override
    public List<ItripHotelRoomDTO> getItripHotelRoomListByMap(SearchHotelRoomVO vo) throws Exception {
        return baseMapper.getItripHotelRoomListByMap(vo);
    }

    @Override
    public ItripHotelRoom getItripHotelRoomById(Long id) throws Exception {
        return baseMapper.getItripHotelRoomById(id);
    }
}
